STEP 7: Let's call our new function inside of main()!

  • In , drag Call with Parameters inside and to the bottom of main().
  • Change my_function() to ask_for_password(). This function will prompt the user for the password.
  • Finally, change my_var1 to text and my_var2 to password.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)